#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    earthWidget = new EarthWidget(this);
    //objviewerwidget = new ObjViewerWidget(this);
    ui->verticalLayout->addWidget(earthWidget);

    //earthWidget->addMarker(39.9042f, 116.4074f, QVector3D(1.0f, 0.0f, 0.0f)); // 北京
    //earthWidget->addMarker(40.7128f, -74.0060f, QVector3D(0.0f, 1.0f, 0.0f)); // 纽约
}

MainWindow::~MainWindow()
{
    delete ui;
    delete earthWidget;
    earthWidget = nullptr;
   // delete objviewerwidget;
   // objviewerwidget = nullptr;
}
